/*
 * 首页路由
 *
 * @Author:    前端开发-zc
 * @Date:      2022-09-06 20:51:41
 * @Wechat:    zhuda1024
 * @Email:     1120507206@qq.com
 * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012
 */
import { HOME_PAGE_NAME } from '/@/constants/system/home-const';
import { MENU_TYPE_ENUM } from '/@/constants/system/menu-const';
import SmartLayout from '/@/layout/smart-layout.vue';
import { RouteRecordRaw } from 'vue-router';

export const homeRouters:Array<RouteRecordRaw> = [
  {
    path: '/',
    name: '_home',
    redirect: { name: HOME_PAGE_NAME },
    component: SmartLayout,
    meta: {
      title: '首页',
      menuType: MENU_TYPE_ENUM.MENU.value,
      icon: 'HomeOutlined',
    },
    children: [
      {
        path: '/home',
        name: HOME_PAGE_NAME,
        meta: {
          title: '首页',
          menuType: MENU_TYPE_ENUM.MENU.value,
          icon: 'HomeOutlined',
          parentMenuList: [{ name: '_home', title: '首页' }],
        },
        component: () => import('/@/views/system/home/index.vue'),
      },
      {
        path: '/test1',
        name: 'test1',
        meta: {
          title: 'test1',
          menuType: MENU_TYPE_ENUM.MENU.value,
          icon: 'HomeOutlined',
          parentMenuList: [{ name: '_test1', title: '测试' }],
        },
        component: () => import('/@/views/poc/test1.vue'),
      },
      {
        path: '/base',
        name: 'base',
        meta: {
          title: 'base',
          menuType: MENU_TYPE_ENUM.MENU.value,
          icon: 'HomeOutlined',
          parentMenuList: [{ name: '_base', title: 'base' }],
        },
        component: () => import('/@/views/poc/base.vue'),
      },
      {
        path: '/client',
        name: 'client',
        meta: {
          title: '客戶模块',
          menuType: MENU_TYPE_ENUM.MENU.value,
          icon: 'HomeOutlined',
          parentMenuList: [{ name: '_client', title: 'client' }],
        },
        component: () => import('/@/views/poc/client/clientList.vue'),
      },
      {
        path: '/invoices/invoicesList',
        name: 'invoicesList',
        meta: {
          title: '发票模块',
          menuType: MENU_TYPE_ENUM.MENU.value,
          icon: 'HomeOutlined',
          parentMenuList: [{ name: '_invoicesList', title: 'invoicesList' }],
        },
        component: () => import('/@/views/poc/invoices/invoicesList.vue'),
      },
      {
        path: 'invoices/write-offs',
        name: 'write-offs',
        meta: {
          title: '销项管理',
          menuType: MENU_TYPE_ENUM.MENU.value,
          icon: 'HomeOutlined',
          parentMenuList: [{ name: '_writeoffs', title: 'writeoffs' }],
        },
        component: () => import('/@/views/poc/invoices/write-offs.vue'),
      },
        {
          path: 'invoices/income',
          name: 'income',
          meta: {
            title: '进项管理',
            menuType: MENU_TYPE_ENUM.MENU.value,
            icon: 'HomeOutlined',
            parentMenuList: [{ name: '_income', title: 'income' }],
          },
          component: () => import('/@/views/poc/invoices/income.vue'),
        },
        {
          path: 'vouchers/vouchersList',
          name: 'vouchersList',
          meta: {
            title: '凭证管理',
            menuType: MENU_TYPE_ENUM.MENU.value,
            icon: 'HomeOutlined',
            parentMenuList: [{ name: '_vouchersList', title: 'vouchersList' }],
          },
          component: () => import('/@/views/poc/vouchers/vouchers.vue'),
        },
        {
          path: 'teller/bank-deposits',
          name: 'bank-deposits',
          meta: {
            title: '银行存款',
            menuType: MENU_TYPE_ENUM.MENU.value,
            icon: 'HomeOutlined',
            parentMenuList: [{ name: '_bankdeposits', title: 'bankdeposits' }],
          },
          component: () => import('../../views/poc/teller/bank-deposits.vue'),
        },
        {
          path: 'teller/bank-cash',
          name: 'bank-cash',
          meta: {
            title: '现金',
            menuType: MENU_TYPE_ENUM.MENU.value,
            icon: 'HomeOutlined',
            parentMenuList: [{ name: '_bankcash', title: 'bankcash' }],
          },
          component: () => import('/@/views/poc/teller/bank-cash.vue'),
        },
        {
          path: 'teller/bank-runs',
          name: 'bank-runs',
          meta: {
            title: '银行流水',
            menuType: MENU_TYPE_ENUM.MENU.value,
            icon: 'HomeOutlined',
            parentMenuList: [{ name: '_bankruns', title: 'bankruns' }],
          },
          component: () => import('/@/views/poc/teller/bank-runs.vue'),
        },
    ],
  },
];
